package com.roam.utils;


import java.util.Random;

//该类用于生成4位数随机验证码
public class ValidateCodeUtils {
    public static Integer generateValidateCode(){
        Integer code = null;
        code = new Random().nextInt(9999);
        if(code<1000){
            code = code+1000;
        }
        return code;
    }

}
